package cate.common.table.show.sheet;

import cate.common.table.ESheet;
import cate.common.table.d.GDBlog;
import cate.common.table.show.row.HeadIconRow;
import easy.java.dev.note.NoteClass;

@NoteClass("头像")
public class HeadIconSheet extends ESheet<HeadIconRow> {

    @Override
    public String getSheetName() {
        return "头像";
    }

    public HeadIconRow findDefaultRow(byte sex) {
        for (HeadIconRow row : this.getList()) {
            if (row.activeType == GDBlog.ActiveType.SEX && row.value == sex) {
                return row;
            }
        }
        return null;
    }
}
